package charpter11.lynx;

import java.util.PriorityQueue;

public class TwentyNine extends Object {
	public static void main(String[] args) {
		PriorityQueue<TwentyNine> queue = new PriorityQueue<TwentyNine>();
		queue.offer(new TwentyNine());
		queue.offer(new TwentyNine());
		queue.offer(new TwentyNine());
		queue.offer(new TwentyNine());
		System.out.println(queue.size());
	}
}
/*
 * Exception in thread "main" java.lang.ClassCastException:
 * charpter11.lynx.TwentyNine cannot be cast to java.lang.Comparable at
 * java.util.PriorityQueue.siftUpComparable(Unknown Source) at
 * java.util.PriorityQueue.siftUp(Unknown Source) at
 * java.util.PriorityQueue.offer(Unknown Source) at
 * charpter11.lynx.TwentyNine.main(TwentyNine.java:9)
 */